orNull

infix fun orNull(value: Int): PositiveInt?

Deprecated

Use the PositiveIntOrNull function instead.

Replace with

import kotools.types.number.PositiveIntOrNull
PositiveIntOrNull(value)

Returns the value as a PositiveInt, or returns null if the value equals 0.